package com.it.Mapper;

import com.it.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface LoginMapper {
    @Select("select * from user where username=#{username} and password=#{password}")
    User login(User user);

    @Update("update user set password = #{password} where username = #{username}")
    void updateUser(User user);
}
